import { CommonEntity } from '@/common/entities/common.entity';
import { Organization } from '@/modules/organization/models/organization.entity';
import { Column, Entity, ManyToOne } from 'typeorm';
@Entity('temp')
export class Temp extends CommonEntity {
  @Column({
    comment: '昵称',
    default: '',
  })
  name: string;

  @Column({
    comment: '手机号',
    nullable: true,
  })
  tel: string;

  @Column({
    comment: '头像',
    nullable: true,
  })
  avatar: string;

  @Column({
    comment: '密码',
    nullable: true,
  })
  password: string;

  @Column({
    comment: '账户信息',
    nullable: true,
  })
  account: string;

  @Column({
    comment: 'openid',
    nullable: true,
  })
  openid?: string;

  @ManyToOne(() => Organization, (organization) => organization)
  org: Organization;
}
